package com.itheima.service.impl;

import cn.itheima.health.service.MemberService;
import com.itheima.mapper.MemberMapper;
import com.itheima.pojo.Member;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.event.TransactionalEventListener;


@Service
@Transactional
public class MemberServiceImpl implements MemberService {
    @Autowired
    private MemberMapper memberMapper;
    @Override
    public Member findMemberByTelephone(String telephone) {
        return memberMapper.findMemberByTelephone(telephone);
    }

    @Override
    public void add(Member member) {
        memberMapper.add(member);
    }
}
